package com.nowcode.community.service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: FollowService
 * Package: com.nowcode.community.service
 * Description:
 *
 * @Author: 信
 * @Create: 2024/1/25 - 18:02
 */
public interface FollowService {

    void follow(int userId, int entityType, int entityId);

    void unfollow(int userId, int entityType, int entityId);

    long findFolloweeCount(int userId, int entityType);

    long findFollowerCount(int entityType, int entityId);

    boolean hasFollowed(int userId, int entityType, int entityId);

    List<Map<String, Object>> findFollowees(int userId, int offset, int limit);

    List<Map<String, Object>> findFollowers(int userId, int offset, int limit);

}
